import http from '@/utils/http'
export function merchantCode(params) {
  const url = '/xyyc/systemUser/merchantCode'
  return http.post(url, params)
}
export function merchantApply(params) {
  const url = '/xyyc/systemUser/merchantApply'
  return http.post(url, params)
  // if (params.newpassword) {
  //   params.newpassword = md5.createHash(params.newpassword).toUpperCase()
  // }
  // if (params.password) {
  //   params.password = md5.createHash(params.password).toUpperCase()
  // }
}
export function queryMerchantApply(params) {
  const url = '/xyyc/systemUser/queryMerchantApply'
  return http.post(url, params)
}

export function approvalMerchantApply(params) {
  const url = '/xyyc/systemUser/approvalMerchantApply'
  return http.post(url, params)
}

export function deleteMerchantApply(params) {
  const url = '/xyyc/systemUser/deleteMerchantApply'
  return http.post(url, params)
}
